package org.benjamin.wechat.domain;

import java.util.Date;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

@JacksonXmlRootElement(localName = "xml")
public class WechatMessage {
	
	@JacksonXmlProperty(localName = "URL")
	private String url;
	
	@JacksonXmlProperty(localName = "ToUserName")
	private String toUserName;
	
	@JacksonXmlProperty(localName = "FromUserName")
	private String fromUserName;
	
	@JacksonXmlProperty(localName = "CreateTime")
	private Date createTime;
	
	@JacksonXmlProperty(localName = "MsgType")
	private String msgType;
	
	@JacksonXmlProperty(localName = "PicUrl")
	private String picUrl;
	
	@JacksonXmlProperty(localName = "mediaId")
	private String mediaId;
	
	@JacksonXmlProperty(localName = "Format")
	private String format;
	
	@JacksonXmlProperty(localName = "ThumbMediaId")
	private String thumbMediaId;
	
	@JacksonXmlProperty(localName = "MsgId")
	private String msgId;
	
	@JacksonXmlProperty(localName = "Event")
	private String event;
	
	@JacksonXmlProperty(localName = "EventKey")
	private String eventKey;
	
	@JacksonXmlProperty(localName = "Ticket")
	private String ticket;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}
	
	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public String getEventKey() {
		return eventKey;
	}

	public void setEventKey(String eventKey) {
		this.eventKey = eventKey;
	}

	public String getTicket() {
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}
	
	
	

}
